import request from "@/config/utils/request";

// 查询财务入库单byID
export function getTranStorage(data) {
  return request({
    url: "/apis/smp/tran/storage/getTranStorage",
    method: "POST",
    data
  });
}

// 暂存
export function saveTranStorage(data) {
  return request({
    url: "/apis/smp/tran/storage/tempSave/editTranStorage",
    method: "POST",
    data
  });
}

// 编辑
export function editTranStorage(data) {
  return request({
    url: "/apis/smp/tran/storage/save/editTranStorage",
    method: "POST",
    data
  });
}

// 提交
export function submitTranStorage(data) {
  return request({
    url: "/apis/smp/tran/storage/submit/editTranStorage",
    method: "POST",
    data
  });
}

// 、审批撤回
export function revokeTranStorage(data) {
  return request({
    url: "/apis/smp/tran/storage/revokeTranStorage",
    method: "POST",
    data
  });
}

// 查询入库单详情
export function getFinStorageById(data) {
  return request({
    url: "/apis/smp/tran/storage/getTranStorage",
    method: "POST",
    data
  });
}
